Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

I/O Methods

A custom object may include these methods for file access:

#define kQ3XMethodTypeObjectTraverse Q3_METHOD_TYPE('t','r','v','s')
#define kQ3XMethodTypeObjectTraverseData Q3_METHOD_TYPE('t','r','v','d')
#define kQ3XMethodTypeObjectWrite Q3_METHOD_TYPE('w','r','i','t')
#define kQ3XMethodTypeObjectReadData Q3_METHOD_TYPE('r','d','d','t')
#define kQ3XMethodTypeObjectRead Q3_METHOD_TYPE('r','e','a','d')
#define kQ3XMethodTypeObjectAttach Q3_METHOD_TYPE('a','t','t','c')

The operation of some of these methods is discussed in the chapter "File Objects" under the headings shown:

The Q3XMethodTypeObjectAttach method is described below.

TQ3XObjectAttachMethod

The TQ3XObjectAttachMethod function, which is returned by the kQ3XMethodTypeObjectAttach method, attaches a child object to a parent object for traversal and other I/O operations.

#define kQ3XMethodTypeObjectAttach Q3_METHOD_TYPE('a','t','t','c')
typedef TQ3Status (*TQ3XObjectAttachMethod)(
                     TQ3Object    childObject,
                     TQ3Object    parentObject);
childObject
An object that is to be attached as a child.
parentObject
An object that is to be attached as a parent.

DESCRIPTION

The TQ3XObjectAttachMethod method attaches childObject to parentObject as child to parent.


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |